package com.zhkj.framework.service.impl;

import com.zhkj.framework.domain.Accounts;
import com.zhkj.framework.mapper.AccountsMapper;
import com.zhkj.framework.service.AccountsService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Auther: zhangy
 * @Date: 2018/10/29 14:18
 * @Description:
 */
@Slf4j
@Service
public class AccountsServiceImpl implements AccountsService {

    @Autowired
    private AccountsMapper accountsMapper;

    //查询科目列表
    @Override
    public List<Accounts> selectAll() {

        List<Accounts> accountsList = accountsMapper.selectAccountss();
        return accountsList;
    }

    @Override
    public List<Accounts> selectOnes(String accountCode) {
        log.info(accountCode);
        return accountsMapper.selectOnes(accountCode);
    }
}
